//
//  WeiboAnnotationModel.m
//  微blog
//
//  Created by Jorn.Wu on 15/10/5.
//  Copyright (c) 2015年 Jorn.Wu(jorn_wza@sina.com). All rights reserved.
//

#import "WeiboAnnotationModel.h"

@implementation WeiboAnnotationModel

- (void)setWeiboModel:(HomeWeiboModel *)weiboModel{
    _weiboModel = weiboModel;
    NSDictionary *geo = weiboModel.geo;
    
//    查看内容
    kSinaWeiboLog(@"%@",geo);
    
    
    NSArray *coordinates = [geo objectForKey:@"coordinates"];
    if (coordinates.count >= 2) {
        
        NSString *longitude = coordinates[0];
        NSString *latitude = coordinates[1];
        
        _coordinate = CLLocationCoordinate2DMake([longitude floatValue], [latitude floatValue]);
    }
    
    
    
}

@end
